import com.alibaba.fastjson.JSONObject;

public class Comic {

    private Integer comicId;
    private Integer comicGid;
    private Integer comicPage;
    private String comicResp;
    private String comicTitle;
    private String comicAlias;
    private String comicTag;

    public Comic(JSONObject comic) {
        this.comicId = comic.getInteger("comicId");
        this.comicGid = comic.getInteger("comicGid");
        this.comicPage = comic.getInteger("comicPage");
        this.comicResp = comic.getString("comicResp");
        this.comicTitle = comic.getString("comicTitle");
        this.comicAlias = comic.getString("comicAlias");
        this.comicTag = comic.getString("comicTag");
    }

    public void show() {
        System.out.println("------------------------------");
        System.out.println(toString());
        System.out.println("------------------------------");
    }

    public String toString() {
        return "ID：" + this.comicId + "\n" +
                "GID：" + this.comicGid + "\n" +
                "Page：" + this.comicPage + "\n" +
                "Title：" + this.comicTitle + "\n" +
                "Alias：" + this.comicAlias + "\n" +
                "Tags：" + this.comicTag + "\n";
    }

    public Integer getComicId() {
        return comicId;
    }

    public void setComicId(Integer comicId) {
        this.comicId = comicId;
    }

    public Integer getComicGid() {
        return comicGid;
    }

    public void setComicGid(Integer comicGid) {
        this.comicGid = comicGid;
    }

    public Integer getComicPage() {
        return comicPage;
    }

    public void setComicPage(Integer comicPage) {
        this.comicPage = comicPage;
    }

    public String getComicResp() {
        return comicResp;
    }

    public void setComicResp(String comicResp) {
        this.comicResp = comicResp;
    }

    public String getComicTitle() {
        return comicTitle;
    }

    public void setComicTitle(String comicTitle) {
        this.comicTitle = comicTitle;
    }

    public String getComicAlias() {
        return comicAlias;
    }

    public void setComicAlias(String comicAlias) {
        this.comicAlias = comicAlias;
    }

    public String getComicTag() {
        return comicTag;
    }

    public void setComicTag(String comicTag) {
        this.comicTag = comicTag;
    }
}
